package com.bwie.mapper;

import com.bwie.domain.Food;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Ms.发发
 * @description
 * @date 2024/12/18 8:44
 **/
@Mapper
public interface FoodMapper {

    @Insert("insert into t_food(food_name,price,number,username) values(#{foodName},#{price},#{number},#{username})")
    int insert(Food food);

    @Select("select * from t_food")
    List<Food> selectAll();
}

